﻿using DapperExtensions.Mapper;

namespace ZilLion.Service.WeChatMall.Domain.Entitys
{
    public class DiscountResultEntity
    {
        /// <summary>
        ///     折后金额
        /// </summary>
        public decimal SumAmount { get; set; }

        /// <summary>
        ///     获得积分
        /// </summary>
        public decimal SumIntegral { get; set; }
    }

    public class DiscountResultEntityMapper : ClassMapper<DiscountResultEntity>
    {
        public DiscountResultEntityMapper()
        {
            Table("#cj");
            Map(f => f.SumAmount).Column("cjje");
            Map(f => f.SumIntegral).Column("jf");
        }
    }
}